﻿#define _CRT_SECURE_NO_WARNINGS 1
#include "AVL.h"
#include <string>

int main()
{
	//AVLTree<char, int> tree;
	AVLTree<int, int> tree;
	// 常规的测试⽤例
	//int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	// 特殊的带有双旋场景的测试⽤例
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : a)
	{
		tree.insert({ e,e });
	}
	tree.inoder();
	cout << tree.checkAVL();
	int i = 0;
	return 0;
}